package itdfq.dfq.Behavior_Patters.jieshiqi;

import java.util.HashMap;

/**
 * @Author GocChin
 * @Date 2021/5/15 13:03
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Descript:
 */
public class SubExpression extends SymbolExpression {

    public SubExpression(Expression left, Expression right) {
        super(left, right);
    }

    public int interpreter(HashMap<String, Integer> var) {
        return super.left.interpreter(var) - super.right.interpreter(var);
    }

}